// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuerouter from 'vue-router'
import HelloWorld from './components/HelloWorld'
import Home from './components/Home'
//import Users from './components/Users'


Vue.config.productionTip = false;
Vue.use(Vuerouter);
//配置路由
const vueRouter = new Vuerouter({
  mode: "history",
  routes: [
    {path: "/", component: Home},
    {path: "/helloworld", component: HelloWorld}
  ]
})
//定义全局的组件
//一般不会使用全局组件，
//Vue.component('users', Users);
/* eslint-disable no-new */
new Vue({
  vueRouter,
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
